import QtQuick 2.15
import QtQuick.Controls 2.15

Rectangle {
    implicitHeight: 600
    implicitWidth: 1024

    property ListModel wizardModel: ListModel {
        ListElement {
            name: "searchInput"
            descript: "Search for keywords"
            targetObjectName: "searchInput"
            arrowType: Qt.LeftArrow
        }
        ListElement {
            name: "About"
            descript: "Information about the device."
            targetObjectName: "homeBtn"
            arrowType: Qt.LeftArrow
        }
        ListElement {
            name: "Menu"
            descript: "minimize, maximize, normal or close main window"
            targetObjectName: "menu"
            arrowType: Qt.LeftArrow
        }
        ListElement {
            name: "Setting menu area"
            descript: "Setting menu area."
            targetObjectName: "Setting"
            arrowType: Qt.LeftArrow
        }
    }

    Row {
        id: row
        width: parent.width
        height: parent.height

        LeftPane {
            id: leftPane
            width: parent.width/4
            height: parent.height

            onLoadHome: {
                rightPane.source = rightPane.homeURL
            }
            onLoadContent: {
                rightPane.source = path
                console.log(path)
            }
        }

        RightPane {
            id: rightPane
            width: parent.width*3/4
            height: parent.height


        }
    }
}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
